/**
 * Created by mxk on 2017/6/1.
 */
var CountryDataAry=[{id:1,name:'大陆',code:'CHINA'},
    {id:2,name:'香港',code:'HK'},
    {id:3,name:'台湾',code:'TWN'},
    {id:4,name:'美国',code:'USA'},
    {id:5,name:'日本',code:'JPN'},
    {id:6,name:'韩国',code:'KOR'},
    {id:7,name:'法国',code:'FRA'},
    {id:8,name:'德国',code:'DEU'},
    {id:9,name:'意大利',code:'ITA'},
    {id:10,name:'荷兰',code:'NLD'},
    {id:11,name:'丹麦',code:'DNK'},
    {id:12,name:'加拿大',code:'CAN'},
    {id:13,name:'芬兰',code:'FIN'},
    {id:14,name:'葡萄牙',code:'PRT'},
    {id:15,name:'瑞典',code:'SWE'},
    {id:16,name:'瑞士',code:'CHE'},
    {id:17,name:'西班牙',code:'ESP'},
    {id:18,name:'其他',code:'QT'}];
function fillCountrySelect(id) {
    $('#'+id).empty();
    $('#'+id).append('<option value="0">--选择地区--</option>');
    $.each(CountryDataAry, function (e, i) {
        $("#"+id).append('<option value="' + i.id + '">' + i.name + '</option>');
    });
}

function getCountryObj(id) {
    var obj='';
    $.each(CountryDataAry,function (index,iteam) {
        if (iteam.id==id){
            obj= iteam;
            return false;
        }
    });
    return obj;
}